package com.intellagric.service.traceability.trace_process;

import com.intellagric.common.pojo.LayuiDataGridResult;
import com.intellagric.common.pojo.ResponseMessage;
import com.intellagric.pojo.TracePersonType;
import com.intellagric.pojo.TraceProcess;

/**
 * @Author: zhy
 * @email: 1269679946@qq.com
 * @Date: 2019/1/12
 * @DESC： 生产流程配置服务接口
 */
public interface ProcessService {

    //增加生产流程信息
    ResponseMessage addProcess(TraceProcess process);

    //删除生产流程信息
    ResponseMessage deleteProcess(String id);

    //修改生产流程信息
    ResponseMessage editProcess(TraceProcess process);

    //查询生产流程信息
    TraceProcess getProcessById(String id);
    LayuiDataGridResult getProcessByParentId(String parentId ,String produceBatchId);
    LayuiDataGridResult getProcessList(String produceBatchId);
    LayuiDataGridResult getProcessTree(String produceBatchId);
}
